<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="cash-id"></th>
            <th>业务单号</th>
            <th><div class="text-left">付款单位</div></th>
            <th><div class="text-left">收款账号</div></th>
            <th>审批状态</th>
            <th>确认收款人</th>
            <th>收款类型</th>
            <th>收款状态</th>
            <th>应收款日期</th>
            <th>实收款日期</th>
            <th>币种</th>
            <th>应收金额</th>
            <th>实收金额</th>
            <th>应付手续费</th>
            <th>发票金额</th>
            <th>业务类型</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td><input type="checkbox" class="cash-id" name="cash_id[]" value="{$item.cash_id}"></td>
                <td class="copy-text">{$item.ref_sn}</td>
                <td class="text-left">{$item.pay_company}</td>
                <td class="text-left copy-text">{$item.account}</td>
                <td>{$item.check_status}</td>
                <td>{$item.cashUser?$item.cashUser.nickname:''}</td>
                <td>{$item.cash_type}</td>
                <td>{$item.cash_status}</td>
                <td>{$item.biz_date}</td>
                <td>{$item.real_date}</td>
                <td>{$item.currency}</td>
                <td>{$item.cash_money|abs}</td>
                <td>{$item.real_money|abs}</td>
                <td>{$item.service_charge|abs}</td>
                <td>{$item.invoice_money|abs}</td>
                <td>{$item.ref_type}</td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">
                    <a target="_blank" href="{:url('info', ['cash_id'=>$item['cash_id']])}"  width-form="80%" height-form="80%" class="ajax-form layui-btn layui-btn-xs layui-btn-normal">查看</a>
                    {if \app\common\model\JobFlowModule::isCheckIng($item)}
                    <a item="{$item.cash_id}" class="layui-btn layui-btn-xs check-job-flow">审批</a>
                    {/if}
                    {if \app\common\model\JobFlowModule::isCheckFinish($item) && $item->getData('cash_status') == $cash_status_none}
                    <a href="{:url('/fac/cash/save', ['cash_id' => $item.cash_id])}" width-form="550px" height-form="70%" class="ajax-form layui-btn-xs layui-btn-warm layui-btn">添加收款</a>
                    {/if}
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="18">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>